<?php
$sdk_root = dirname(__FILE__).'/';
session_start();
require_once($sdk_root.'config.php');
require_once($sdk_root.'oauth.php');
require_once($sdk_root.'opent.php');
require_once($sdk_root.'api_client.php');

isset($_SESSION['last_key']) or $_SESSION['last_key'] = array(
	'oauth_token' => '',
	'oauth_token_secret' => '',
);

$c = new MBApiClient( 
	MB_AKEY, 
	MB_SKEY, 
	$_SESSION['last_key']['oauth_token'], 
	$_SESSION['last_key']['oauth_token_secret']
);
var_export($_SESSION);

